﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QuanLyPhongKham
{
    public partial class FrmChinh : Form
    {
        public FrmChinh()
        {
            InitializeComponent();
        }

        private void đăngNhậpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmLogin login = new FrmLogin();
            login.ShowDialog();
        }

        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DialogResult traloi;
            traloi = MessageBox.Show("Bạn có muốn thoát không?", "Thông báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
            if (traloi == DialogResult.OK)
                Application.Exit();
        }

        private void danhSáchBệnhNhânToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmlistPatient Bn = new FrmlistPatient ();
            Bn.ShowDialog();
        }

        private void nhậpTênThuốcToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmListdrugs Thuoc = new FrmListdrugs();
            Thuoc.ShowDialog();
        }

        private void đổiMậtKhẩuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Frmchangespassword doimatkhau = new Frmchangespassword();
            doimatkhau.ShowDialog();
        }

        private void khámBệnhToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmKhamBenh Khambenh = new FrmKhamBenh();
            Khambenh.ShowDialog();
        }

        private void quảnLýKhámBệnh_Click(object sender, EventArgs e)
        {

        }

        private void khámBệnhToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            this.Hide();
            FrmKhamBenh Khambenh = new FrmKhamBenh();
            Khambenh.ShowDialog();
        }
    }
}
